package com.example.su_shi_tan_bas_lib.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import androidx.annotation.Nullable;

import com.example.su_shi_tan_bas_lib.global.AppGlobals;
import com.example.su_shi_tan_bas_lib.utils.QMUIStatusBarHelper;


public class FakStatusWidthBar extends View {
    public FakStatusWidthBar(Context context) {
        super(context);
    }

    public FakStatusWidthBar(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public FakStatusWidthBar(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec,heightMeasureSpec);

        int size = QMUIStatusBarHelper.getStatusbarHeight(AppGlobals.getApplication());
        setMeasuredDimension(size,size);
    }
}
